<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class SwtTransferOrder extends Model
{
    use HasFactory, HasDateTimeFormatter;

    protected $table = 'swt_transfer_order';

    protected $guarded = [];

    public function seller()
    {
        return $this -> belongsTo(SwtIdentity::class, 'seller_id', 'user_id') -> where('type', 0);
    }
}
